package com.zhu.shop.order.controller;

import com.zhu.shop.common.Vo.Result;
import com.zhu.shop.common.Vo.order.OrderParams;
import com.zhu.shop.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    private OrderService orderService;

    @PostMapping("/createOrder")
    public Result<String> createOrder(@RequestBody OrderParams orderParams){
        return orderService.createOrder(orderParams);
    }
}
